<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	
});

//다음단계
function sendData(){
	$.popUrl("./pere203_1Q.do?p_id=${param.p_id}","360","150","pere203");
// 	$("#frmdata").submit();
}

var chkDouble=false;
function saveData(obj){
	if(chkDouble){
		alert("처리중입니다.");
		return false;
	}
	$("#r_phone1").val(obj.r_phone1);
	$("#r_phone2").val(obj.r_phone2);
	$("#r_phone3").val(obj.r_phone3);
	$("#sms_chk_data").val(obj.sms_chk_data);
	chkDouble=true;
	$("#frmdata").submit();
}
</script>

<form action="./pere204T.do" method="post" name="form1" id="frmdata">
<div style="display: none;">

p_id<input type="text" name="p_id" value="${paramMap.p_id }">
reservation_dt<input type="text" name="reservation_dt" value="${paramMap.reservation_dt }">

<c:if test="${paramMap.pr_no_cnts !=null && fn:length(paramMap.pr_no_cnts)>0 }">
	<c:forEach var="map1" items="${paramMap.pr_no_cnts}" varStatus="status">
<br/>
pr_no_cnts<input type="text" name="pr_no_cnts" value="${status.index }">
pr_nos<input type="text" name="pr_nos" value="${paramMap.pr_nos[map1] }">

man_cnts<input type="text" name="man_cnts" value="${paramMap.man_cnts[map1] }">
chi_cnts<input type="text" name="chi_cnts" value="${paramMap.chi_cnts[map1] }">
rsv_days<input type="text" name="rsv_days" value="${paramMap.rsv_days[map1] }">

	</c:forEach>
</c:if>

<c:if test="${paramMap.as_no_idxs !=null && fn:length(paramMap.as_no_idxs)>0 }">
	<c:forEach var="map1" items="${paramMap.as_no_idxs}" varStatus="status">
<br/>as_no_idxs<input type="text" name="as_no_idxs" value="${status.index }">
as_nos<input type="text" name="as_nos" value="${paramMap.as_nos[map1] }">
use_cnts<input type="text" name="use_cnts" value="${paramMap.use_cnts[map1] }">
req_msgs<input type="text" name="req_msgs" value="${paramMap.req_msgs[map1] }">
	</c:forEach>
</c:if>

<input type="text" name="reservation_nm" value="${paramMap.reservation_nm }">
<input type="text" name="sms_chk_data" id="sms_chk_data" value="">
<input type="text" name="r_phone1" id="r_phone1" value="${paramMap.r_phone1 }">
<input type="text" name="r_phone2" id="r_phone2" value="${paramMap.r_phone2 }">
<input type="text" name="r_phone3" id="r_phone3" value="${paramMap.r_phone3 }">
<input type="text" name="pickup" value="${paramMap.pickup }">
<input type="text" name="pick_info" value="${paramMap.pick_info }">
<input type="text" name="pickup_yn" value="${paramMap.pickup_yn }">
<input type="text" name="end_time" value="${paramMap.end_time }">
<input type="text" name="r_email1" value="${paramMap.r_email1 }">
<input type="text" name="r_email2" value="${paramMap.r_email2 }">
<input type="text" name="start_area" value="${paramMap.start_area }">

<textarea rows="" cols="" name="etc_req">${paramMap.etc_req }</textarea>
<input type="text" name="pay_type" value="${paramMap.pay_type }">
<input type="text" name="send_bank" value="${paramMap.send_bank }">
<input type="text" name="send_bank_nm" value="${paramMap.send_bank_nm }">

</div>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td background="/usr/images/mypage_m01bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="40%"><img src="/usr/images/res_m01.gif" width="262" height="22"></td>
                <td width="60%" align="right"><%@ include file="/WEB-INF/jsp/usr/pe/re/pere_top.jsp"%></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td height="20" background="/usr/images/res_mbg.gif">&nbsp;</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%">&nbsp;</td>
          <td width="50%" align="right" style="padding-right: 30px;"><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="70" align="left"><img src="/usr/images/reservation_icon_home.gif" width="47" height="31"></td>
              <td><IMG SRC="${pensionInfo.p_logo }" BORDER="0" height="30"></td>
            </tr>
          </table></td>
        </tr>
      </table>
<%@ include file="/WEB-INF/jsp/usr/pe/re/pere202-3_top.jsp"%>
      
<!-- 예약자 무통장 입금 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="10" height="20" align="right" valign="top"><table
							width="5" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#60C930" height="10"></td>
							</tr>
						</table></td>
					<td valign="bottom" class="padl5"><strong>예약자 정보</strong></td>
				</tr>
			</table></td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td><table width="100%" border="0" cellpadding="0"
				cellspacing="1" bgcolor="#d8d8d8">
				<tr>
					<td width="130" height="3" bgcolor="#60c930"></td>
					<td></td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">예약자명</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.reservation_nm }
						<c:if test="${'A'==paramMap.add_type }">
						<span class="ptrstandby">[관리자]</span>
						</c:if>
					</td>
				</tr>
<!-- 				<tr> -->
<!-- 					<td height="30" align="center" bgcolor="#ffffff"><table -->
<!-- 							border="0" cellspacing="0" cellpadding="0"> -->
<!-- 							<tr> -->
<!-- 								<td align="center" class="greenb2">휴대폰</td> -->
<!-- 							</tr> -->
<!-- 						</table></td> -->
<%-- 					<td bgcolor="#FFFFFF" class="padl30">${paramMap.r_phone1 }-${paramMap.r_phone2 }-${paramMap.r_phone3 }</td> --%>
<!-- 				</tr> -->
			<c:if test="${'Y'==pensionInfo.pickup_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">픽업요청</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">픽업장소:
						${paramMap.pickup }&nbsp;&nbsp;&nbsp;픽업시간: ${paramMap.pick_info }
						<c:if test="${paramMap.pickup_yn=='Y' }">픽업요청함</c:if>
					</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.end_time_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">펜션도착시간</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.end_time } 
					</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.email_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">E - MAIL</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">
						<c:if test="${(''!=paramMap.r_email2 && ''!=paramMap.r_email1) }">
						${paramMap.r_email1 }@${paramMap.r_email2 }
						</c:if>
					</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.start_time_yn }">
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">출발지역</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.start_area }</td>
				</tr>
			</c:if>
			<c:if test="${'Y'==pensionInfo.etc_req_yn }">
				<tr>
					<td height="60" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">기타요청사항</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.etc_req }</td>
				</tr>
			</c:if>
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">결제방법</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30"><table border="0"
							cellspacing="0" cellpadding="0">
							<tr>
								<td>BANK
<%-- 									<c:if test="${paramMap.pay_type=='' }"></c:if> --%>
<%-- 									<c:if test="${paramMap.pay_type=='' }"></c:if> --%>
<%-- 									<c:if test="${paramMap.pay_type=='' }"></c:if> --%>
								</td>
							</tr>
						</table></td>
				</tr>
			</table></td>
	</tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td><table border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td width="10" height="20" align="right" valign="top"><table
							width="5" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td bgcolor="#0099FF" height="10"></td>
							</tr>
						</table></td>
					<td valign="bottom" class="padl5"><strong>무통장 입금</strong></td>
				</tr>
			</table></td>
	</tr>
	<tr>
		<td height="5"></td>
	</tr>
	<tr>
		<td><table width="100%" border="0" cellpadding="0"
				cellspacing="1" bgcolor="#d8d8d8">
				<tr>
					<td width="130" height="3" bgcolor="#0099FF"></td>
					<td></td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금은행</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.send_bank }</td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금자명</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">${paramMap.send_bank_nm }</td>
				</tr>
				<tr>
					<td height="30" align="center" bgcolor="#ffffff"><table
							border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td align="center" class="greenb2">입금대기시간</td>
							</tr>
						</table></td>
					<td bgcolor="#FFFFFF" class="padl30">- 
						${fn:substring(paramMap.rm_wait_time,0,4) }년
						${fn:substring(paramMap.rm_wait_time,4,6) }월
						${fn:substring(paramMap.rm_wait_time,6,8) }일
						
						${fn:substring(paramMap.rm_wait_time,8,10) }시
						${fn:substring(paramMap.rm_wait_time,10,12) }분
					 (시간내
						입금이 되지 않으면 자동으로 <span class="redb">예약취소</span> 됩니다)
					</td>
				</tr>
			</table></td>
	</tr>
</table>

<!-- 예약자 무통장 입금 끝 -->
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="center"><table width="100" border="0" cellspacing="0" cellpadding="2">
              <tr>
                <td><a href="javascript:history.go(-1)"><img src="/camping/img/reservation_bt02.jpg" width="114" height="36"></a></td>
                <td>
                	<a href="#" onclick="sendData();"><img src="/usr/images/res_btn_next.gif" width="114" height="36"></a>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
        </tr>
        <tr>
          <td height="3" bgcolor="#86ad29"></td>
        </tr>
        <tr>
          <td style="padding-top: 2px;"><%@ include file="/WEB-INF/jsp/usr/pe/re/footer.jsp"%></td>
        </tr>
      </table></td>
  </tr>
</table>

</form>

